<?php $show_validate = true; include THEMES_PATH . 'public/before_body2.phtml';?>
</head>
<body>
<?php include THEMES_PATH . 'public/header2.phtml';?>
<div class="main-width mt1x crumbs"><?php echo L('you_are_here')?>: <a href="<?php echo url('');?>"><?php echo L('index');?></a> &gt;&gt;<strong><?php echo L('systeminfo');?></strong></div>
<div class="main-width align-center mt2x mb5x">
  <p class="mt2x mb2x font-md"><?php echo $error.$message;?></p>
  <?php $waitSecond = 15;?>
  <?php if($jumpUrl) {?>
  <p>
    <a href="<?php echo $jumpUrl?>" class="btn"><?php echo L('return_order_detail_page');?></a>
  </p>
  <span class="text-bold"><?php echo L('payment_gateway');?> <span id="time"><?php echo intval($waitSecond);?> <?php echo L('_second_')?>s</span>...</span>
  <script>
	  var times = <?php echo intval($waitSecond);?>;//剩余时间,单位秒
	  var timeDiv = document.getElementById("time");
	  var timeObj = null;
	  function timer() {
		if(times == 0) {
			//倒计时结束
			<?php if(strpos($jumpUrl,'top.location.href')){
			  $jumpUrl = str_replace("javascript:top.location.href", "top.location.href", $jumpUrl);
			?>
			  <?php echo $jumpUrl;?>
			<?php }else{ ?>
			  location.href='<?php echo $jumpUrl?>';
			<?php } ?>
			return;
		}
		var times_ = times%60 ;
		var t = times_+" <?php echo L('_second_')?>";
		t += times_ > 1 ? 's' : '';
		timeDiv.innerHTML = t;
		times --;
	  }
	  timeObj = window.setInterval(timer,1000);
  </script>
  <?php }?>
  <?php if ($dialog):?>
  <script>
  window.top.right.location.reload();
  window.top.art.dialog({id:"<?php echo $dialog?>"}).close();
  </script>
  <?php endif;?>
</div>
<?php include THEMES_PATH . 'public/footer2.phtml';?>
<?php include THEMES_PATH . 'public/after_body.phtml';?>